<include file="Public/header"/>
<div class="x-body">
    <form class="layui-form" action="{:U('update')}" >
        <div class="layui-form-item">
            <label for="nickname" class="layui-form-label">
                <span class="x-red"></span>昵称
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" readonly
                       autocomplete="off" value="{$data['nickname']}" name="nickname" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item">
            <label for="phone" class="layui-form-label">
                openid
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" value="{$data['utoken']}" readonly
                       autocomplete="off" class="layui-input" >
            </div>

        </div>
        <div class="layui-form-item">
            <label for="mobile" class="layui-form-label">
                手机号
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" value="{$data['mobile']}" id="mobile" name="mobile"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">            <label for="brokerage" class="layui-form-label">                佣金            </label>            <div class="layui-input-inline" style="width:80%;">                <input type="text" value="{$data['brokerage']|default='0.00'}" id="brokerage" name="brokerage"                       autocomplete="off" class="layui-input">            </div>        </div>
        <div class="layui-form-item">
            <label for="status" class="layui-form-label">
                状态
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="radio" name="status" value="2" <php>if($data['status'] ==2 ) echo 'checked'</php> title="冻结">
                <input type="radio" name="status" value="1" <php>if($data['status'] == 1) echo 'checked'</php> title="正常">
            </div>
        </div>
            <input type="hidden" value="{$data['id']}" name="id">
        <div class="layui-form-item">
            <label for="addtime" class="layui-form-label"> 注册时间</label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" value="<if condition='$data.id gt 0'>{$data['addtime']|date='Y-m-d H:i:s',###}</if>"                 name="addtime" id="addtime" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label>
            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">
                保存
            </button>
        </div>
    </form>
</div><script>layui.use('laydate', function(){	var laydate = layui.laydate;	laydate.render({		elem: '#addtime',		type: 'datetime'	});});</script>

<include file="Public/footer"/>